#! /usr/bin/env python

import sys

f = open(sys.argv[1], "r")
entrada = f.read()
entrada = [i.strip() for i in entrada.split("\n")[:-1]]

for i in xrange(96):
    for j in xrange(128):
        if entrada[i][j] == '1':
            print "gameA(%d)(%d) <= '1';" % (j,i)


